
CC = g++

DAO_INC =/usr/local/dao


CFLAGS = -O2 -fno-rtti -Wall -Wno-unused -I. -I$(DAO_INC)
CFLAGS = -ggdb -fno-rtti -Wall -Wno-unused -I. -I$(DAO_INC)
CFLAGS = -ggdb -Wall -Wno-unused -I. -I$(DAO_INC)
LFLAGS = -fPIC -dynamiclib

TARGET = DaoCxxSTL.dylib

OBJECTS = dao_CxxSTL.o dao_CxxSTL2.o dao_CxxSTL3.o

first: all

all: $(TARGET)

.SUFFIXES: .c .obj .cpp .cc .cxx .C

.cxx.o:
	$(CC) -c $(CFLAGS) -o $@ $<

.cpp.o:
	$(CC) -c $(CFLAGS) -o $@ $<

$(TARGET): $(OBJECTS)
	$(CC) $(LFLAGS) $(OBJECTS) -o $(TARGET)

clean:
	rm *.o
